package com.cdtye.itps.cms.service.defect;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cdtye.common.mybatiscore.base.BaseService;
import com.cdtye.itps.cms.dao.detect.JcjcDefectTypeSection;
import com.cdtye.itps.cms.mapper.defect.JcjcDefectTypeSectionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class JcjcDefectTypeSectionService  extends BaseService<JcjcDefectTypeSectionMapper, JcjcDefectTypeSection> {
    @Autowired
    private JcjcDefectTypeSectionMapper baseMapper;

    public List<JcjcDefectTypeSection> findOneByDefectType(String DefectType){
        QueryWrapper<JcjcDefectTypeSection> wrapper = new QueryWrapper<>();
        wrapper.eq("DEFECT_TYPE_NAME",DefectType);
        return baseMapper.selectList(wrapper);
    }
}
